.keyed-suggestions__suggestions {
	display: flex;
	flex-direction: column;
}

.keyed-suggestions__category {
	background-color: var( --color-neutral-0 );
	border: 1px solid var( --color-neutral-5 );
	border-top: 0;
	padding: 4px 8px;
	font-size: $font-body-small;
	display: flex;
	align-items: center;

	.keyed-suggestions__category-name {
		text-transform: uppercase;
		color: var( --color-neutral-70 );
	}

	.keyed-suggestions__category-counter {
		margin-left: 6px;
		text-transform: uppercase;
		color: var( --color-text-subtle );
		flex: 1;
	}

	.keyed-suggestions__category-show-all {
		font-size: $font-body-small;
		cursor: pointer;
	}
}

.keyed-suggestions__value {
	display: flex;
	padding: 10px;
	background: var( --color-surface );
	border: 1px solid var( --color-neutral-5 );
	border-top: 0;
	font-size: $font-body;
	cursor: pointer;

	&.has-highlight {
		background-color: var( --color-primary );
		color: var( --color-text-inverted );

		.keyed-suggestions__value-description {
			color: var( --color-text-inverted );
		}
	}
}

.keyed-suggestions__value-category {
	display: none;
}

.keyed-suggestions__value-label-wigh-highlight {
	flex: 0 0 auto;

	.keyed-suggestions__value-emphasis,
	.keyed-suggestions__value-normal {
		pointer-events: none; /* Required to allow clicks pass-through */
	}

	.keyed-suggestions__value-emphasis {
		font-weight: 600;
		color: inherit;
	}
}

.keyed-suggestions__value-description {
	position: relative; /* Required to allow :before positioning to work */
	pointer-events: none; /* Required to allow clicks pass-through */
	flex: 1 1 auto;
	margin-left: 0.5em;
	padding-top: 3px;
	color: var( --color-text-subtle );
	font-size: $font-body-small;
	height: 19px; /* font-size + 2*padding */
	overflow: hidden;

	&::before {
		@include long-content-fade();

		.has-highlight & {
			@include long-content-fade( $color: var( --color-primary-rgb ) );
		}
	}
}
